package com.niit.dao;


import com.niit.entity.Collect;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.data.domain.Pageable;
import java.util.List;



/**
 * (Collect)表数据库访问层
 *
 * @author kingner
 * @since 2024-05-28 19:46:45
 */
@Mapper
public interface CollectDao {

    /**
     * 通过ID查询单条数据
     *
     * @param uid
     * @return 实例对象
     */
    List<Collect> queryByUid(int uid);

    Collect queryOne (@Param("uid") int uid ,@Param("gid") int gid);


    int insert(Collect collect);


    int deleteByUid( int uid);

    int deleteOne(@Param("uid") int uid ,@Param("gid") int gid);

    int deleteByGid(int gid);

}

